function getTerminal() {
    let sUserAgent = navigator.userAgent.toLowerCase();
    let bIsIpad     = sUserAgent.match("ipad")           !=null;
    let bIsIphoneOs = sUserAgent.match("iphone")         !=null;
    let bIsMidp     = sUserAgent.match("midp")           !=null;
    let bIsUc7      = sUserAgent.match("rv:1.2.3.4")     !=null;
    let bIsUc       = sUserAgent.match("ucweb")          !=null;
    let bIsAndroid  = sUserAgent.match("android")        !=null;
    let bIsCE       = sUserAgent.match("windows ce")     !=null;
    let bIsWM       = sUserAgent.match("windows mobile") !=null;
    if (bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) {
        return 'PHONE'
    }else{
        return 'PC'
    }
}

export default getTerminal;
